﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Units.aspx.cs" Inherits="PmSadis.WebFormsUi.Operator.Units" %>

<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.10.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxHiddenField" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.10.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<asp:Content ID="unitsContent" ContentPlaceHolderID="content" runat="server">
    <link href="../Content/oper.units.css" rel="stylesheet" type="text/css" />
    <h2>
        Единицы измерения</h2>
    <asp:ScriptManager ID="unitsScriptManager" runat="server" />
    <!--units data source-->
    <asp:ObjectDataSource ID="dsUnits" runat="server" TypeName="PmSadis.WebFormsUi.Operator.Units"
        SelectMethod="GetAll" DeleteMethod="DeleteUnit" InsertMethod="InsertUnit" UpdateMethod="UpdateUnit" />
    <asp:UpdatePanel ID="unitsUpdatePanel" runat="server">
        <ContentTemplate>
            <dx:ASPxGridView ID="gvUnits" runat="server" DataSourceID="dsUnits" OnInit="gvUnits_Init"
                KeyFieldName="UnitId" OnRowUpdating="gvUnitsRowUpdating">
                <Columns>
                    <dx:GridViewDataColumn FieldName="UnitId" Visible="false" />
                    <dx:GridViewDataDateColumn FieldName="DateCreate" Visible="false" />
                    <dx:GridViewCommandColumn>
                        <NewButton Visible="true" />
                        <EditButton Visible="true" />
                        <DeleteButton Visible="true" />
                    </dx:GridViewCommandColumn>
                    <dx:GridViewDataTextColumn Caption="Наименование" FieldName="Name" />
                    <dx:GridViewDataTextColumn Caption="Полное наименование" FieldName="FullName" />
                    <dx:GridViewDataSpinEditColumn Caption="Число знаков после запятой" FieldName="DecimalPlace" />
                </Columns>
            </dx:ASPxGridView>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
